import request from '@/utils/request'


export const getProjectDoctorData = (query) => {
  return request({
    url: '/business/project/userData',
    method: 'get',
    params: query
  })
}


export const getProjectList = (query) => {
  return request({
    url: '/business/project/list',
    method: 'get',
    params: query
  })
}

export const getProjectById = (projectId, query) => {
  return request({
    url: `/business/project/${projectId}`,
    method: 'get',
    params: query
  })
}

export const addProject = (data) => {
  return request({
    url: '/business/project',
    method: 'post',
    data: data
  })
}

export const modifyProject = (data) => {
  return request({
    url: '/business/project',
    method: 'put',
    data: data
  })
}

export const delProject = (projectIds) => {
  return request({
    url: `/business/project/${projectIds}`,
    method: 'delete'
  })
}
